
import unittest
import time

from Page import Page
from selenium import webdriver

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

# options = Options()
# # 注释或删除这行，关闭无头模式
# # options.add_argument('--headless=new')
# driver = webdriver.Firefox(options=options)

class Case(unittest.TestCase):

    def setUp(self) -> None:
        self.driver = webdriver.Firefox()
        self.driver.set_window_size(1280, 800)
    def tearDown(self) -> None:
        time.sleep(6)
        self.driver.quit()

    def test_baidu_01(self):
        po = Page(self.driver)
        po.lioji_baidu()

if __name__ == '__main__':
    unittest.main()

